

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <script type="text/javascript" src ="${resource(dir:'js',file:'function.js')}">
        </script>
        <title>查询Booking</title>
    </head>
    <body>
        <div class="body">
            <h1>查询Booking</h1>
			<g:if test="${flash.message}">
			<div class="message">${flash.message}</div>
			</g:if>
            <g:form action="search" method="post">
                <div class="dialog">
                    <table>
                        <tr class="prop">
                            <td class="name" valign="middle">
                                <label for="name">Field1</label>
                            </td>
                            <td class="value">
                                <input type="text" maxlength="20" name="name"  value="${params.name}" />
                            </td>
                            <td class="name" valign="middle">
                                <label for="loginName">Field2</label>
                            </td>
                            <td class="value">
                                <input type="text" maxlength="20" name="name2" value="${params.name2}" />
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="buttons" align="center">
                    <input type="submit" value="查询" class="formbutton" />
                    <input type="reset" value="重置" class="formbutton" />
                </div>
                <div class="buttons" align="left">
                    <span onClick="request(this, 'create.gsp')">
                    	<input type="button" value="新建" class="formbutton" /></span>
                    <span onClick="request(this, 'edit.gsp')">
                    	<input type="button" value="修改" class="formbutton" /></span>
                    <span onClick="request(this, 'list.gsp')">
                    	<input type="button" value="列表" class="formbutton" /></span>
                    <span onClick="request(this, 'show.gsp')">
                    	<input type="button" value="详细" class="formbutton" /></span>
                </div>
            </g:form>
			
			<g:if test="${bookingInstanceList}"
            <div class="list">
                <table>
                    <thead>
                        <tr>
							<th class="sortable">序号</th>
                        
								<g:sortableColumn property="id" title="Id"  params="${params}"/>
                        
								<th>Booking Items</th>
                   	    
								<g:sortableColumn property="bookingNum" title="Booking Num"  params="${params}"/>
                        
								<g:sortableColumn property="consigneeAddr" title="Consignee Addr"  params="${params}"/>
                        
								<g:sortableColumn property="consigneeName" title="Consignee Name"  params="${params}"/>
                        
								<g:sortableColumn property="consigneePhone" title="Consignee Phone"  params="${params}"/>
                        
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${bookingInstanceList}" status="i" var="bookingInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
							<td>${i + params.offset.toInteger() + 1}</td>
                        
                            <td><g:link action="edit" id="${bookingInstance.id}">${fieldValue(bean:bookingInstance, field:'id')}</g:link></td>
                        
                            <td>${fieldValue(bean:bookingInstance, field:'bookingItems')}</td>
                        
                            <td>${fieldValue(bean:bookingInstance, field:'bookingNum')}</td>
                        
                            <td>${fieldValue(bean:bookingInstance, field:'consigneeAddr')}</td>
                        
                            <td>${fieldValue(bean:bookingInstance, field:'consigneeName')}</td>
                        
                            <td>${fieldValue(bean:bookingInstance, field:'consigneePhone')}</td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${bookingInstanceTotal}" params="${params}" />
            </div>
			</g:if>
			
        </div>
    </body>
</html>
